import { instance as orequest } from "@/utils/orequest"
type RETURNDATA = {
  code: number
  msg: string
  data?: any
}

const isOutData = (url: string, params?: any) => {
  return orequest<any, RETURNDATA>({
    method: "GET",
    url,
    params: params,
  })
}
const reGetToken = (url: string, params?: any) => {
  return orequest<any, RETURNDATA>({
    method: "GET",
    url,
    params: params,
  })
}
export { isOutData, reGetToken }
